package com.stylefeng.guns.modular.netcar.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.stylefeng.guns.modular.netcar.model.DispatchPsnDriver;

import java.util.List;

/**
 * 
 * 调度员可调度驾驶员 Mapper 接口 
 * @author sasazaixian
 * @Date 2018-11-15 10:28
 */
public interface DispatchPsnDriverMapper extends BaseMapper<DispatchPsnDriver> {
    /**
     * 删除调度员可调度驾驶员
     * @param  dispatchPsnDriver
     * @return    
     */
    int deleteDispatchPsnDriver(DispatchPsnDriver dispatchPsnDriver)throws Exception;
    /**
     * 批量调度员可调度驾驶员
     * @param ids 主键id数组
     * @return     
     */
    int deleteBatchDispatchPsnDriver(String[] ids)throws Exception;
    /**
     * 查询调度员可调度驾驶员列表
     * @param dispatchPsnDriver 调度员可调度驾驶员对象
     * @return      
     */
    List<DispatchPsnDriver> selectListDispatchPsnDriver(DispatchPsnDriver dispatchPsnDriver)throws Exception;
    /**
     * 分页查询调度员可调度驾驶员列表
     * @param page  分页对象
     * @param dispatchPsnDriver 系统操作对象
     * @return
     * @Date 2018-10-02
     */
    List<DispatchPsnDriver> selectListDispatchPsnDriver(Page page, DispatchPsnDriver dispatchPsnDriver)throws Exception;


    /**
     * 同一个事务 互斥锁查询
     * @param dispatchPsnDriver 系统操作对象
     * @return     
     */
    List<DispatchPsnDriver> selectListDispatchPsnDriverForUpdate(DispatchPsnDriver dispatchPsnDriver)throws Exception;
    /**
     * 通过主键ID查询调度员可调度驾驶员对象
     * @param id 主键id
     * @return    
     */
    DispatchPsnDriver findDispatchPsnDriverById(String id)throws Exception;

    /**
     * 插入调度员可调度驾驶员
     * @param dispatchPsnDriver
     * @return   
     */
    int insertDispatchPsnDriver(DispatchPsnDriver dispatchPsnDriver) throws Exception ;
    /**
     * 更新调度员可调度驾驶员
     * @param dispatchPsnDriver
     * @return     
     */
    int updateDispatchPsnDriver(DispatchPsnDriver dispatchPsnDriver) throws Exception ;


}
